<?php


namespace m;


use think\Model;

class AppBasicM extends Model
{
    //计算分页
    public function pageCount($count,$limit = 10)
    {
        $count = is_int($count) ? $count : current($count);
        if(is_array($count)) $count = current($count);
        return ceil( $count / $limit);
    }

}